package main.entity;

public enum LargeNumber {

	COIN("",0), K("k",1), M("M",2), B("B",3), T("T",4), q("q",5), Q("Q",6), s("s",7), S("S",8), O(
			"O",9), N("N",10), d("d",11), U("U",12), D("D",13), EXCLAMATION("!",14), AT("@",15), SHARP(
			"#",16), CIFRAO("$",17), PERCENT("%",18), CIRCUNFLEXO("^",9), E_COMERCIAL("&",20), STAR(
			"*",21),A_LOT("A lot",22);

	private String printValue;
	private int order;

	private LargeNumber(String value, int order) {
		this.printValue = value;
		this.order = order;
	}
	
	public static LargeNumber getLargeNumber(String value){
		LargeNumber retorno = null;
		
		for (LargeNumber large : LargeNumber.values()) {
			if (large.name().equals(value) || large.printValue.equals(value) || (""+large.order).equalsIgnoreCase(value)) {
				retorno = large;
				break;
			}
		}
		
		return retorno;
	}
	public static LargeNumber getLargeNumber(int value){
		LargeNumber retorno = null;
		
		for (LargeNumber large : LargeNumber.values()) {
			if (large.order==value) {
				retorno = large;
				break;
			}
		}
		
		return retorno;
	}

	public String getPrintValue() {
		return printValue;
	}

	public int getOrder() {
		return order;
	}

}
